from django.conf.urls.defaults import patterns, include, url
from settings import *
from views import *


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'xcheng.views.home', name='home'),
    # url(r'^xcheng/', include('xcheng.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    (r'^media/(?P<path>.*)$','django.views.static.serve',{'document_root':MEDIA_ROOT}),
    ('^hello/$', hello),
    ('^home/$', v_home),
    ('^arts/$', v_arts),
    ('^blog/$', v_blog_list),
    ('^game_designs/$', v_game_designs_list),
    (r'^game_designs/(\d+)/$', v_game_designs_post),
    ('^projects/$', v_projects_list),
    (r'^projects/(\d+)/$', v_projects_post),
    (r'^blog/(\d+)/$', v_blog_post),
    (r'^blog/add_comment/(\d+)/$', v_blog_add_comment),
    (r"^blog/delete_comment/(\d+)/$", v_blog_delete_comment),
    (r"^blog/delete_comment/(\d+)/(\d+)/$", v_blog_delete_comment),
    (r"^blog/month/(\d+)/(\d+)/$", v_blog_month),
    (r"^blog/category/(\d+)/$", v_blog_category),
)
